package com.winsdom.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 三表更换记录表
 * </p>
 *
 * @author 
 * @since 2025-05-12
 */
@Data
@Accessors(chain = true)
@TableName("table_replacement")
public class TableReplacement implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 旧表ID
     */
    private Integer oldTableId;

    /**
     * 新表ID
     */
    private Integer newTableId;

    /**
     * 旧表最后读数
     */
    private Integer lastReading;

    /**
     * 换表时间
     */
    private LocalDateTime replacementTime;

    /**
     * 操作人ID(修改用户)
     */
    private Long operatorId;


}
